<b>Author Options:</b><br />
<br />

<?PHP if(isset($_SESSION['user_id']) AND (substr($_SERVER['PHP_SELF'], -10) != 'logout.php')):?>

<a href="logout.php">Logout</a><br />
<a href="change_password.php">Change Password</a><br />
<a href="authors.php">List Articles</a><br />

<?PHP else:?>

<a href="login.php">Login</a><br />
<a href="register.php">Register</a><br />
<a href="forgot_password.php">Forgot Password</a><br />

  <?PHP endif;?>